package com.gao.g_aio.client;

/**
 * @author gaopeng
 * @time 2020/10/02 12:08:12
 */
public class TimeClient {

    public static void main(String[] args) {
        int port = 8080;
        try {
            if (args != null && args.length > 0) {
                port = Integer.valueOf(args[0]);
            }
        } catch (NumberFormatException e) {
            // 采用默认值
        }
        new Thread(new AsyncTimeClientHandler("127.0.0.1", port), "AIO-AsyncTimeClientHandler-001").start();
    }
}